from rest_framework import serializers
from apps.common.account.models import Account


class UserSerializer(serializers.ModelSerializer):

    class Meta:
        model = Account
        fields = ['telephone', 'username', 'faculty_title', 'realname', 'status', 'grade_name',
                  'sex', 'class_title', 'major_title']